package com.lagou.homework2.no3;

public class TestMain {
    public static void main(String[] args) {
        //声明一个卡:卡类型、卡号、用户名、密码、账户余额、通话时长(分钟)、上网流量
        IcCards icCards = new IcCards(CardType.Bigcard.getType(),"18547895456","张三","123456",20.3,1000,50 );
        icCards.show();
        //展示上网套餐
        InternetPackage internetPackage = new InternetPackage();
        InternetServiceInterface internetServiceInterface = new InternetPackage();
        internetServiceInterface.method2(icCards.getInternetTraffic(), icCards);
        System.out.println("======================================");
        //展示通话套餐
        TalkPackage talkPackage = new TalkPackage();
        PhoneServiceInterface phoneServiceInterface = new TalkPackage();
        phoneServiceInterface.method1(icCards.getTalkTime(),icCards);
    }
}
